<!DOCTYPE HTML>
<html>

<head>
    <meta charset="utf-8">
    <meta name="viewport" content="maximum-scale=1.0, minimum-scale=1.0, user-scalable=0, initial-scale=1.0, width=device-width" />
    <meta name="format-detection" content="telephone=no, email=no, date=no, address=no">
    <title value=''>视频详情</title>
    <style>

    </style>
</head>

<body>

</body>
<script type="text/javascript" src="../../script/api.js"></script>
<script type="text/javascript" src="../../script/faskclick.js"></script>
<script type="text/javascript">
apiready = function() {
  var header = $api.byId('aui-header');
  $api.fixStatusBar(header);
  var headerPos = $api.offset(header);
  if ('addEventListener' in document) {
      document.addEventListener('DOMContentLoaded', function() {
          FastClick.attach(document.body);
      }, false);
  }
  var watch = false;
  if (api.pageParam.watch) {
      watch = true
  }

  api.openFrame({
      name: 'videodetial',
      url: './free_video.html',
      bounces: false,
      rect: {
          x: 0,
          y: 0,
          w: 'auto',
          h: 'auto'
      },
      pageParam:{
        videoid:api.pageParam.videoid,
        watch:watch
      },
      reload:true,
      animation:{
          type:"push",                //动画类型（详见动画类型常量）
          subType:"from_right",       //动画子类型（详见动画子类型常量）
          duration:300                //动画过渡时间，默认300毫秒
      },
  })
  api.addEventListener({
      name: 'loginsuccess'
  }, function(ret, err) {
    setTimeout(function() {
      api.closeWin();
    },1000)
  })
  //监听返回键
  api.addEventListener({
      name: 'keyback'
  }, function(ret, err) {
    api.sendEvent({
        name: 'detialkeyback',
    });
    api.sendEvent({
        name: 'detialkeyback1',
    });

  });
};
function closeWin() {
    api.closeWin({});
}

</script>

</html>
